package com.neusoft.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

@ApiModel(description="emp_position")
@TableName(value = "emp_position")
public class EmpPosition {
    /**
     * 员工id
     */
    @TableField(value = "emp_id")
    @ApiModelProperty(value="员工id")
    private Integer empId;

    /**
     * 职位id
     */
    @TableField(value = "position_id")
    @ApiModelProperty(value="职位id")
    private Integer positionId;

    /**
     * 开始日期
     */
    @TableField(value = "start_time")
    @ApiModelProperty(value="开始日期")
    private Date startTime;

    /**
     * 开始日期
     */
    @TableField(value = "end_time")
    @ApiModelProperty(value="开始日期")
    private Date endTime;

    /**
     * 离职原因
     */
    @TableField(value = "reason")
    @ApiModelProperty(value="离职原因")
    private String reason;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value="备注")
    private String remark;

    /**
     * 获取员工id
     *
     * @return emp_id - 员工id
     */
    public Integer getEmpId() {
        return empId;
    }

    /**
     * 设置员工id
     *
     * @param empId 员工id
     */
    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    /**
     * 获取职位id
     *
     * @return position_id - 职位id
     */
    public Integer getPositionId() {
        return positionId;
    }

    /**
     * 设置职位id
     *
     * @param positionId 职位id
     */
    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }

    /**
     * 获取开始日期
     *
     * @return start_time - 开始日期
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * 设置开始日期
     *
     * @param startTime 开始日期
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * 获取开始日期
     *
     * @return end_time - 开始日期
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * 设置开始日期
     *
     * @param endTime 开始日期
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 获取离职原因
     *
     * @return reason - 离职原因
     */
    public String getReason() {
        return reason;
    }

    /**
     * 设置离职原因
     *
     * @param reason 离职原因
     */
    public void setReason(String reason) {
        this.reason = reason;
    }

    /**
     * 获取备注
     *
     * @return remark - 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置备注
     *
     * @param remark 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", empId=").append(empId);
        sb.append(", positionId=").append(positionId);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", reason=").append(reason);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }
}
